package com.hp.dao;

import com.hp.entity.ResourcesType;
import com.hp.result.DataGridResultInfo;

import java.util.List;

/**
 * 资源类型接口
 */
public interface ResourcesTypeDao {
    public List<ResourcesType> findAllByParentIsNotNull(int page, int rows, ResourcesType resourcesType)throws Exception;

    public ResourcesType findByParentIsNull()throws Exception;

    public void savatype(ResourcesType resourcesType)throws Exception;

    public ResourcesType findTypeById(String id)throws Exception;

    public void updateType(ResourcesType resourcesType)throws Exception;

    public void deleteTypeById(String id)throws Exception;

    public void addsum(String id)throws Exception ;

    public ResourcesType getParent()throws Exception ;
}
